from django.db import models
from django.utils.translation import gettext_lazy as _

class TimeStampedModel(models.Model):
    """表基础字段

    1. 版本号
    2. 创建时间
    3. 修改时间
    4. 删除时间

    """
    verbose = models.IntegerField(_("verbose"), default=0)
    created_at = models.DateTimeField(_("created at"), auto_now_add=True)
    updated_at = models.DateTimeField(_("updated at"), auto_now=True)
    deleted = models.BooleanField(_("deleted"), default=False)

    class Meta:
        abstract = True